package binary;

public class HexDemo {
    public static void main(String[] args) {

        int a=156431;
        System.out.println(Integer.toBinaryString(a));
        System.out.println(Integer.toHexString(a));
        int b=0x2c31d5;
        System.out.println(Integer.toBinaryString(b));
        System.out.println(b);
    }
}
